import request from '@/plugin/axios'

export function GetType (data) {
  return request({
    url: '/type/get',
    method: 'get',
    params: {
      ...data
    }
  })
}

export function GetAllType () {
  return request({
    url: '/type/getAll',
    method: 'get'
  })
}

export function AddType (data) {
  return request({
    url: '/type/add',
    method: 'post',
    params: {
      ...data
    }
  })
}

export function UpdateType (data) {
  return request({
    url: '/type/update',
    method: 'put',
    params: {
      ...data
    }
  })
}

export function DelType (data) {
  return request({
    url: '/type/del',
    method: 'put',
    params: {
      ...data
    }
  })
}
